<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

  <head>
    <title>Artikel Browser</title>
  </head>

  <body>
  	<ui:composition template="/template.xhtml">
  	<ui:define name="navigation-left">
		<ui:include src="/hauptnavigation.xhtml" />
	</ui:define>
	<ui:define name="content">
	  	<h:form id="artikelBrowserForm">
	  	<h:dataTable value="#{artikelBrowserForm.artikel}" var="item" border="1">
	  	<h:column>
	  		<input type="checkbox" name="selectedArtikelIds" value="#{item.artikelTO.idArtikel}"/>
	  		<h:selectBooleanCheckbox value="#{item.selected}"/>
	  	</h:column>
		<h:column>
			<f:verbatim>Id</f:verbatim>
			<h:outputText value="#{item.artikelTO.idArtikel}"/>
		</h:column>
		<h:column>
			<f:verbatim>Name</f:verbatim>
			<h:outputText value="#{item.artikelTO.artikelname}"/>
		</h:column>
		</h:dataTable>
		<h:commandButton action="#{artikelBrowserAction.bearbeiten}" id="artikelBrowserFormSubmit" type="submit" value="Map Checked Item(s)"/>
		</h:form>
	</ui:define>
  	</ui:composition>
  </body>
</html>